//
//  FootBottomView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/11.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "FootBottomView.h"

@implementation FootBottomView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        //
        GLGWLabel * tongyiLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self];
        tongyiLabel.attributedText = [GLGWLabel bllChangeStr:@"同意《钢来钢往平台求购单发布协议》" changewithStr:@"《钢来钢往平台求购单发布协议》" changeColoer:kColor_Rule_Yellow withFont:SYSTEMFONT(14)];
        [tongyiLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(self).offset(kWidthProportion_In_iPhoneTriploid(20));
            make.top.equalTo(self.mas_top).offset(kHeightProportion_In_iPhoneTriploid(20));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        GLGWButton * selectBut = [[GLGWButton alloc] initInSuperView:self];
        selectBut.backgroundColor = kRandomColor;
        [selectBut mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(tongyiLabel);
            make.right.equalTo(tongyiLabel.mas_left).offset(0);
            make.width.equalTo(@(kWidthProportion_In_iPhoneTriploid(20)));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        GLGWView * bottomView = [[GLGWView alloc] initWithInSuperView:self];
        bottomView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        [bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.bottom.right.equalTo(self);
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(10)));
        }];
    }
    return self;
}

@end
